<template>
  <div>
    <div class="flex items-center justify-between">
      <el-button type="primary" size="small" @click="onAdd"
        >添加敏感词</el-button
      >
    </div>
    <el-table
      :height="tableHeight"
      class="mt-2"
      stripe
      v-loading="loading"
      :data="rows"
    >
      <!-- <el-table-column prop="id" label="ID" width="180"> </el-table-column> -->
      <el-table-column type="index"></el-table-column>
      <el-table-column label="敏感词" width="">
        <template slot-scope="{ row }">
          {{ row }}
        </template>
      </el-table-column>

      <el-table-column label="操作">
        <template slot-scope="{ row }">
          <el-link class="mr-2" type="" @click="onDel({ words: [row] })">
            删除
          </el-link>
        </template>
      </el-table-column>
    </el-table>
    <this-add ref="add" @added="fetch" />
  </div>
</template>

<script>
import rowsCurl from "@/mixins/rows-curl";
import thisAdd from "./add.vue";

export default {
  components: { thisAdd },
  mixins: [rowsCurl],
  data() {
    return {
      uri: {
        list: "user/getSensetive",
        del: "/user/delSensetive",
      },
    };
  },
  computed: {},
  methods: {
    // onDel(row) {}
  },
};
</script>

<style>
</style>